//
//  BaseUIViewController.h
//  ShareParking
//
//  Created by STAR on 2017/7/29.
//  Copyright © 2017年 zjw. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <DZNEmptyDataSet/UIScrollView+EmptyDataSet.h>

@interface BaseUIViewController : UIViewController<DZNEmptyDataSetSource,DZNEmptyDataSetDelegate>

@property (nonatomic, assign) NSInteger maxpage;
@property (nonatomic, assign) NSInteger page;
@property (nonatomic, assign) NSInteger rows;
@property (nonatomic, strong) NSMutableArray *dataSoureArray;
@property (nonatomic, strong) NSMutableArray *recordArray;//记录老的数据
@property (nonatomic, assign) BOOL isRecord;//是否重复刷新
- (void)addRefreshtoView:(UIScrollView *)scrollView;//增加下拉刷新
- (void)addHeaderRefresh:(UIScrollView *)scrollView;
- (void)addFooterRefresh:(UIScrollView *)scrollView;
- (void)addDNZSet;//添加无数据的站位图
- (void)loadMore;//加载更多
- (void)loadNew;//加载最新
- (void)endRefresh;//结束刷新
- (BOOL)hasMore;//是否下拉加载更多
//
- (void)configNavBackgroundColorUI;
//加载网页
//- (void)loadWevVCWithUrlString:(NSString *)urlString title:(NSString *)title;
//刷新数据
- (void)loadDataFromService ;
//处理数据
-(NSArray *)dealWithDest:(NSArray *)destArray sourceArray:(NSArray *)sourceArray;

//- (void)requestPostWithUrl:(NSString *)url
//                    params:(NSDictionary *)params
//                 isShowHud:(BOOL)isshow
//               covertModel:(Class)modelClass
//                    sucess:(void(^)(id result))sucess
//                   failure:(nullable void (^)(NSString *errorMessage))failure;
- (void)back;
@end
